package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 垃圾桶满溢信息表
 *
 * @author code-generate
 * @date 2021-08-18
 */
@Data
@DbTable(tableName = "t_rubbish_bin_report")
public class RubbishBinReport extends BaseEntity {

    @DbTableField(columnName = "c_device_id", dbType = DbTypeEnum.INTEGER)
    public Integer deviceId;

    @DbTableField(columnName = "c_device_code", dbType = DbTypeEnum.VARCHAR)
    public String deviceCode;
    /**
     * 终端号,设备上设置的终端手机号，不够 12 位前面补 0
     */
    @DbTableField(columnName = "c_tem_id", dbType = DbTypeEnum.VARCHAR)
    public String temId ;

    /**
     * 传感器 id 设备上设置的 ID 号
     */
    @DbTableField(columnName = "c_dev_id", dbType = DbTypeEnum.BIGINT)
    public Long devId ;

    /**
     * 时间 时间戳毫秒数
     */
    @DbTableField(columnName = "c_gps_time", dbType = DbTypeEnum.BIGINT)
    public Long gpsTime ;

    /**
     * 经度
     */
    @DbTableField(columnName = "c_lng", dbType = DbTypeEnum.DOUBLE)
    public Double lng ;

    /**
     * 纬度
     */
    @DbTableField(columnName = "c_lat", dbType = DbTypeEnum.DOUBLE)
    public Double lat ;

    /**
     * 垃圾高度百分比
     */
    @DbTableField(columnName = "c_percentage", dbType = DbTypeEnum.INTEGER)
    public Integer percentage ;

    /**
     * 传感器垃圾高度 单位 CM，传感器到垃圾面高度，表示还可以容纳多 少高度的垃圾量
     */
    @DbTableField(columnName = "c_brim_over_height", dbType = DbTypeEnum.INTEGER)
    public Integer brimOverHeight ;

    /**
     * 温度
     */
    @DbTableField(columnName = "c_temperature", dbType = DbTypeEnum.INTEGER)
    public Integer temperature ;

    /**
     * 电压
     */
    @DbTableField(columnName = "c_electricity", dbType = DbTypeEnum.DOUBLE)
    public Double electricity ;


    /**
     * 垃圾桶状态 0：空； 1：满
     */
    @DbTableField(columnName = "c_full", dbType = DbTypeEnum.INTEGER)
    public Integer full;

    /**
     * 电量 0-100
     */
    @DbTableField(columnName = "c_batt", dbType = DbTypeEnum.INTEGER)
    public Integer batt;

    /**
     * 信号强度
     */
    @DbTableField(columnName = "c_rssi", dbType = DbTypeEnum.INTEGER)
    public Integer rssi;

    /**
     * 消息产生的时长
     */
    @DbTableField(columnName = "c_passTime", dbType = DbTypeEnum.INTEGER)
    public Integer passTime;

    /**
     * 垃圾桶盖子状态 0：关盖 1：开盖
     */
    @DbTableField(columnName = "c_state", dbType = DbTypeEnum.INTEGER)
    public Integer state;

    /**
     * 盖子打开角度
     */
    @DbTableField(columnName = "c_angle", dbType = DbTypeEnum.INTEGER)
    public Integer angle;

    /**
     * 信号质量
     */
    @DbTableField(columnName = "c_rsrp", dbType = DbTypeEnum.VARCHAR)
    public Integer rsrp;

    /**
     * 信噪比
     */
    @DbTableField(columnName = "c_snr", dbType = DbTypeEnum.INTEGER)
    public Integer snr;

    /**
     * 上报时间
     */
    @DbTableField(columnName = "c_date", dbType = DbTypeEnum.VARCHAR)
    public String date;

    /**
     * 创建时间
     */
    public LocalDateTime dbCreateDate ;

    /**
     *   对应t_sys_user.c_id
     */
    public Integer dbCreateId ;

    /**
     * 最后更新时间
     */
    public LocalDateTime dbLastUpdateDate ;

    /**
     *  对应t_sys_user.c_id
     */
    public Integer dbLastUpdateId ;


}
